<admintpl file="header" />
</head>
<body>
    <div class="wrap js-check-wrap">
        <ul class="nav nav-tabs">
            <li><a href="{:U('Attendance/index')}">考勤管理</a></li>
            <if condition="session('ADMIN_ID') eq 1 OR $userrole['role'] eq 1">
            	<li><a href="{:U('Attendance/add')}">新增考勤</a></li>
            </if>
            <li class="active"><a href="{:U('Attendance/detail')}">详情页</a></li>
        </ul>
        <table class="table table-hover table-bordered">
            <thead>
                <tr>
                    <th>姓名</th>
                    <th>日期</th>
                    <th>签到时间</th>
                    <th>签退时间</th>
                    <th>迟到时间</th>
                    <th>早退时间</th>
                    <th>加班时间</th>
                    <th>工作时间</th>
                    <th>部门名称</th>
                    <th>出勤时间</th>
                    <th>实到</th>
                    <th>是否旷工</th>
                </tr>
            </thead>
            <tbody>
            <foreach name="results" item="vo">
                <tr>
                    <td>{$vo.realname}</td>
                    <td>
                    	<if condition="$vo['work_date'] neq null">
	                    	{$vo.work_date}
	                    <else/>
	                    </if>
                    </td>
                    <td>
                    	{$vo.check_in_time}
                    </td>
                    <td>
                    	{$vo.check_out_time}
                    </td>
                    <td>{$vo.arrive_late}</td>
                    <td>{$vo.leave_earlier}</td>
                    <td>{$vo.work_overtime}</td>
                    <td>{$vo.work_hours}</td>
                    <td>{$vo.department_name}</td>
                    <td>{$vo.attendance_time}</td>
                    <td>
	                    <if condition="$vo['really'] eq 1">
	                    	签到
	                    <else/>
	                    </if>
                    </td>
                    <td>
                    	<if condition="$vo['absenteeism'] eq 'True'">
	                    	旷工
	                    <else/>
	                    </if>
                    </td>
                </tr>
            </foreach>
            </tbody>            
        </table>
        <div class="pagination">{$page}</div>
    </div>
    <script src="__PUBLIC__/js/common.js"></script>
    <script language="javascript" type="text/javascript" src="__PUBLIC__/js/My97DatePicker/WdatePicker.js"></script>
</body>
</html>